﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyProject.BLL;

namespace MyProject.DAL.Users.IManager
{
    interface IUserManager
    {
        IEnumerable<user> GetAll();
        user GetById(int id);
        void Add(user user);
        void Delete(user user);
        void Delete(long userId);
        void Save(user user);
        IEnumerable<user> Find(String userNameContain, String fullNameContain, String emailContain, int groupId, int page, int size, out int total);
        user getByUserName(string Name);
        bool CheckUsername(String name);
        bool CheckEmail(String email);
        IEnumerable<user> Get(int page, int size, out int total);
    }
}
